import { createApp } from 'vue'
import App from '@/App.vue'

//引入elemnets
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'

//配置国际化
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
//获取应用实例对象
const app = createApp(App)
app.use(ElementPlus, {
    locale: zhCn,
})

//svg插件
import 'virtual:svg-icons-register'
//注册工具组件
import gloalComponent from '@/components'
app.use(gloalComponent)

//注册路由
import router from './router'
app.use(router)

//使用仓库
import pinia from './store'
app.use(pinia)
//引入模板样式
import '@/styles/index.scss'
app.mount('#app')
